package amushen.tree;

import java.util.HashMap;
import java.util.Map;

public class TreeNode {

	private String id;
	private String name;
	private String parentId;
	private String isLeaf;		// if it is a leaf ,return 1;
	private Map attributes;
	
	public TreeNode() {
		id="0";
		name="";
		parentId="0";
		isLeaf="0";
		attributes=new HashMap();
	}
	
	public TreeNode(String id,String name){
		this();
		this.id=id;
		this.name=name;
	}
	
	
	public Map getAttributes() {
		return attributes;
	}
	public void setAttributes(Map attributes) {
		this.attributes = attributes;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getIsLeaf() {
		return isLeaf;
	}

	public void setIsLeaf(String isLeaf) {
		this.isLeaf = isLeaf;
	}


}
